package com.platform.service;

import com.platform.domain.model.RoleAuthorization;
import com.platform.domain.model.RoleAuthorizationKey;

import java.util.List;

/**
* RoleAuthorization
*
* User: wangyang
* DateTime: 2012-10-08 16:11:58
*
*/
public interface RoleAuthorizationService {

    /**
    *
    * 根据主键查询RoleAuthorization对象
    *
    * @param key
    * @return RoleAuthorization对象
    */
    RoleAuthorization selectByPrimaryKey(RoleAuthorizationKey key) throws Exception;

    /**
    *
    * 根据查询条件查询符合条件的RoleAuthorization对象
    *
    * @param roleAuthorization
    * @return 符合条件的RoleAuthorization对象List
    */
    List<RoleAuthorization> select(RoleAuthorization roleAuthorization) throws Exception;

    /**
    *
    * 根据主键删除RoleAuthorization对象
    *
    * @param key
    * @return 影响条件数
    */
    int deleteByPrimaryKey(RoleAuthorizationKey key) throws Exception;

    /**
    *
    * 根据条件删除符合条件的RoleAuthorization对象
    *
    * @param roleAuthorization
    * @return 影响条件数
    */
    int delete(RoleAuthorization roleAuthorization) throws Exception;

    /**
    *
    * 插入RoleAuthorization对象
    *
    * @param roleAuthorization
    * @return 影响条件数
    */
    int insert(RoleAuthorization roleAuthorization) throws Exception;

    /**
    *
    * 更新RoleAuthorization对象
    *
    * @param roleAuthorization
    * @return 影响条件数
    */
    int update(RoleAuthorization roleAuthorization) throws Exception;

}
